{include="head"}
  
	<body><div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->
		
		<div id="sidebar"><div id="sidebar-wrapper"> <!-- Sidebar with logo and menu -->   
			
			{include="menu"}
			
			<div id="messages" style="display: none"> <!-- Messages are shown when a link with these attributes are clicked: href="#messages" rel="modal"  -->
				
				<h3>3 Messages</h3>
			 
				<p>
					<strong>17th May 2009</strong> by Admin<br />
					Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus magna. Cras in mi at felis aliquet congue.
					<small><a href="#" class="remove-link" title="Remove message">Remove</a></small>
				</p>
			 
				<p>
					<strong>2nd May 2009</strong> by Jane Doe<br />
					Ut a est eget ligula molestie gravida. Curabitur massa. Donec eleifend, libero at sagittis mollis, tellus est malesuada tellus, at luctus turpis elit sit amet quam. Vivamus pretium ornare est.
					<small><a href="#" class="remove-link" title="Remove message">Remove</a></small>
				</p>
			 
				<p>
					<strong>25th April 2009</strong> by Admin<br />
					Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus magna. Cras in mi at felis aliquet congue.
					<small><a href="#" class="remove-link" title="Remove message">Remove</a></small>
				</p>
				
				<form action="" method="post">
					
					<h4>New Message</h4>
					
					<fieldset>
						<textarea class="textarea" name="textfield" cols="79" rows="5"></textarea>
					</fieldset>
					
					<fieldset>
					
						<select name="dropdown" class="small-input">
							<option value="option1">Send to...</option>
							<option value="option2">Everyone</option>
							<option value="option3">Admin</option>
							<option value="option4">Jane Doe</option>
						</select>
						
						<input class="button" type="submit" value="Send" />
						
					</fieldset>
					
				</form>
				
			</div> <!-- End #messages -->
			
		</div></div> <!-- End #sidebar -->
		
		<div id="main-content"> <!-- Main Content Section with everything -->
			
			<div class="clear"></div> <!-- End .clear -->
			
			<div class="content-box"><!-- Start Content Box -->
				
				{include="content_head"}
				
				<div class="content-box-content">
					
					<div class="tab-content{if !$act} default-tab{/if}" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->
						
						<table>
							
							<thead>
								<tr>
								   <th><input class="check-all" type="checkbox" />ID</th>
								   <th>店名</th>
								   <th>好店</th>
								   <th>新店</th>
								   <th>延时赔付</th>
								   <th>状态</th>
								   <th>关键词</th>
								   <th>链接</th>
								   <th>操作</th>
								</tr>
								
							</thead>
						 
							{include="pages"}
						 
							<tbody>
							{foreach from=$data item=d}
								<tr>
									<td><input type="checkbox" value="{$d.type_id}" /></td>
									<td>{$d.name}</td>
									<td>{$d.is_best}</td>
									<td>{$d.is_new}</td>
									<td>{$d.is_payout}</td>
									<td>{$d.is_show}</td>
									<td>{$d.keywords}</td>
									<td>{$d.url}</td>
									<td>
										<!-- Icons -->
										 <a href="?app=shop&act=update&id={$d.shop_id}" title="update"><img src="template/resources/images/icons/pencil.png" alt="update" /></a>
										 <a href="?app=shop&act=delete&id={$d.shop_id}" title="Delete"><img src="template/resources/images/icons/cross.png" alt="Delete" /></a> 
										 <!--<a href="#" title="Edit Meta"><img src="template/resources/images/icons/hammer_screwdriver.png" alt="Edit Meta" /></a>-->
									</td>
								</tr>
							{/foreach}
								
							</tbody>
							
						</table>
						
					</div> <!-- End #tab1 -->
					
					<div class="tab-content{if $act} default-tab{/if}" id="tab2">
					
						<form action="?app=shop&act={$act}" method="post">
							
							<fieldset> <!-- Set class to "column-left" or "column-right" on fieldsets to divide the form into columns -->
								
								<p>
									<label>店名</label>
										<input class="text-input small-input" type="text" id="small-input" name="name" value="{$row.name}" /> <span class="input-notification success png_bg">不能为空</span> <!-- Classes for input-notification: success, error, information, attention -->
										<br /><small>菜品类型</small>
								</p>	
								<p>
									<label>关键词</label>
										<input class="text-input small-input" type="text" id="small-input" name="keywords" value="{$row.keywords}" /> <span class="input-notification success png_bg">不能为空</span>
								</p>
								<p>
									<label>简短描述</label>
										<input class="text-input small-input" type="text" id="small-input" name="brief" value="{$row.brief}" /> <span class="input-notification success png_bg">不能为空</span>
								</p>
								<p>
									<label>送餐时间</label>
										<input class="text-input small-input" type="text" id="medium-input" name="start_time" value="{$row.start_time}" /> - <input class="text-input small-input" type="text" id="large-input" name="end_time" value="{$row.end_time}" />
										<br /><small></small>
								</p>

								<p>
									<label>送餐时间间隔</label>
									<input class="text-input small-input" type="text" id="large-input" name="send_time" value="{$row.send_time}" />
								</p>
								<p>
									<label>送餐订单上限</label>
									<input class="text-input small-input" type="text" id="large-input" name="multi" value="{$row.multi}" />
								</p>
								
								<p>
									<label>额外</label>
									<input type="checkbox" name="is_best" value="1" {if $row.is_best} checked{/if} /> 最好店铺 <input type="checkbox" value="1" name="is_new" {if $row.is_new} checked{/if} /> 最新店铺 <input type="checkbox" value="1" name="is_payout" {if $row.is_payout} checked{/if} /> 超时赔付 <input type="checkbox" value="1" name="is_show" {if $row.is_show} checked{/if} /> 是否显示 
								</p>
								
								<p>
									<label>店铺地址</label>
									<input class="text-input large-input" type="text" id="large-input" name="region_id" value="{$row.region_id}" />
								</p>

								<p>
									<label>店铺类型</label>
									<select name="type" class="small-input">
										<option value="0">请选择..</option>
									</select> 
								</p>

								<p>
									<label>所属用户</label>
									<select name="user_id" class="small-input">
										<option value="0">请选择..</option>
									</select>
								</p>

								<p>
									<label>排序</label>
									<input class="text-input small-input" type="text" id="large-input" name="sort" value="{$row.sort}" />
								</p>

								<p>
									<label>标签</label>
										<input class="text-input small-input" type="text" id="small-input" name="tag" value="{$row.tag}" /> <span class="input-notification success png_bg"></span>
								</p>

								<p>
									<label>支持送餐楼盘</label>
										<input class="text-input small-input" type="text" id="small-input" name="plaza" value="{$row.plaza}" /> <span class="input-notification success png_bg"></span>
								</p>
								
								<p>
									<label>店铺图片</label>
									<input class="small-input" type="file" id="large-input" name="img" value="" /> <span class="input-notification success png_bg">自动生成缩略图</span>
								</p>
								
								<p>
									<label>店铺介绍</label>
									<textarea class="text-input textarea wysiwyg" id="textarea" name="content" cols="79" rows="15"></textarea>
								</p>
								
								<p>
									<input type="hidden" name="id" value="{$row.shop_id}" />
									<input class="button" name="submit" type="submit" value="提　　　　交" />
								</p>
								
							</fieldset>
							
							<div class="clear"></div><!-- End .clear -->
							
						</form>
						
					</div> <!-- End #tab2 -->        
					
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
			
			{include="footer"}
			
		</div> <!-- End #main-content -->
		
	</div></body>
  
</html>
